package com.dps.omc.enumer;

/**
 * Created by lip on 2016-01-21.
 */
public enum EnumJobState {

    NEW("NEW","","新建",true),
    EXEC_TEST("EXEC_TEST","","测试执行",true),
    EXEC_STANDARD("EXEC_STANDARD","","标准执行",true),
    READY("READY","","就绪",false),
    LOADING("LOADING","","执行中",false),
    EXECUTED("EXECUTED","","已执行",false),
    SUCC("SUCC","","成功",false),
    CANCEL("CANCEL","","取消",false),
    FAIL("FAIL","","失败",false);


    private final String name;
    private final String value;
    private final String label;
    private final Boolean runAble;//允许全部运行
    private EnumJobState(String name, String value, String label,boolean runAble) {
        this.name = name;
        this.value = value;
        this.label = label;
        this.runAble = runAble;
    }

    public String getName() {
        return name;
    }

    public String getValue() {
        return value;
    }

    public String getLabel() {
        return label;
    }

    public Boolean getRunAble() {
        return runAble;
    }
}
